#ifndef IDCARDWGT_H
#define IDCARDWGT_H

#include <QWidget>
#include <QTimer>
#include <QResizeEvent>
#include <QLabel>
#include <QMetaType>
#include "idcardreaddatang.h"
#include "idcardocr.h"

Q_DECLARE_METATYPE(ST_ID_INFO)
class IDCardWgt : public QWidget
{
    Q_OBJECT
public:
    explicit IDCardWgt(QWidget *parent = 0);
    ~IDCardWgt();

protected:
    void resizeEvent(QResizeEvent* event);

signals:

public slots:
    void slotIdCardInfo(ST_ID_INFO& stIdInfo, QPixmap pixMap);

private:
    IDCardReadDatang* m_pIDCardReadDatang;
    IdCardOcr* m_pIdCardOcr;

    QLabel* m_pLabTitle;
    QLabel* m_pLabName;
    QLabel* m_pLabNameTxt;
    QLabel* m_pLabGender;
    QLabel* m_pLabGenderTxt;
    QLabel* m_pLabEthnicity;
    QLabel* m_pLabEthnicityTxt;
    QLabel* m_pLabBirth;
    QLabel* m_pLabBirthTxt;

    QLabel* m_pLabAuthority;
    QLabel* m_pLabAuthorityTxt;

    QLabel* m_pLabValidity;
    QLabel* m_pLabValidityTxt;

    QLabel* m_pLabAddr;
    QLabel* m_pLabAddrTxt;
    QLabel* m_pLabID;
    QLabel* m_pLabIDTxt;
    QLabel* m_pLabPhoto;
};

#endif // IDCARDWGT_H
